#include "stdafx.h"
#include "ASDataDelegate.h"


ASQueryDataDelegate::ASQueryDataDelegate(QObject *parent)
	:ButtonItemDelegate(parent)
{
}

void ASQueryDataDelegate::onMouseRelease( int id,QModelIndex index )
{
	if(id == 0)
	{
		emit onModifyBtnClicked(index);
	}

	else if(id == 1)
	{
		emit onDelBtnClicked(index);
	}

	else if(id == 2)
	{
		emit onPreViewBtnClicked(index);
	}
}
